package day15.atm;

import javax.swing.*;

/**
 * 菜单界面
 */
public class MenuPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("images/buttonSave.jpg");
    private ImageIcon saveImg1 = new ImageIcon("images/buttonGet.jpg");
    private ImageIcon saveImg2 = new ImageIcon("images/buttonFind.jpg");
    private ImageIcon saveImg3 = new ImageIcon("images/buttonOff.jpg");
    private ImageIcon saveImg4 = new ImageIcon("images/buttonModify.jpg");
    private ImageIcon saveImg5 = new ImageIcon("images/buttonTransferPanel.jpg");
    private ImageIcon saveImg6 = new ImageIcon("images/buttonSwitch.jpg");
    private JButton saveBtn = new JButton(saveImg);//存款
    private JButton saveBtn1 = new JButton(saveImg1);//取款
    private JButton saveBtn2 = new JButton(saveImg2);//查询
    private JButton saveBtn3 = new JButton(saveImg3);//退出
    private JButton saveBtn4 = new JButton(saveImg4);//改密
    private JButton saveBtn5 = new JButton(saveImg5);//转账
    private JButton saveBtn6 = new JButton(saveImg6);//切换账号
    public MenuPanel(){
        this.setLayout(null);
        saveBtn.setBounds(0,150,140,50);
        saveBtn1.setBounds(0,300,140,50);
        saveBtn2.setBounds(0,450,140,50);
        saveBtn3.setBounds(0,600,140,50);
        saveBtn4.setBounds(884,150,140,50);
        saveBtn5.setBounds(884,300,140,50);
        saveBtn6.setBounds(884,450,140,50);
        this.add(saveBtn);
        this.add(saveBtn1);
        this.add(saveBtn2);
        this.add(saveBtn3);
        this.add(saveBtn4);
        this.add(saveBtn5);
        this.add(saveBtn6);
        this.setOpaque(false);
    }
}
